<template>
    <div class="top">
            <div class="top_header">
                <div 
                class="iconfont top_header_back"
                @click="handleBackClick"
                >&#xe681;</div>
                确认订单
            </div>
            <div class="top_receiver">
                <div class="top_receiver_title">收货地址</div>
                <div class="top_receiver_address">北京理工大学国防科技园2号楼10层</div>
                <div class="top_receiver_info">
                    <span class="top_receiver_info_name">瑶妹（先生）</span> 
                    <span class="top_receiver_info_nunmber">18911024266</span>
                </div>
                <div class="iconfont top_receiver_icon">&#xe681;</div>
            </div>
        </div>
</template>

<script>
import {useRouter} from 'vue-router'
export default {
    name:'TopArea',
    setup() {
        const router=useRouter()
        const handleBackClick=()=>{
            router.back()
        }
        return {handleBackClick}
    }
}
</script>

<style lang="scss" scoped>
@import '../../style/viriables';
.top{
    position: relative;
    height: 1.96rem;
    background-size: 100% 1.59rem;
    background-image: linear-gradient(0deg, rgba(0,145,255,0.00) 4%, #0091FF 50%);
    background-repeat: no-repeat;
    &_header{
        position: relative;
        padding-top: .2rem;
        line-height: .24rem;
        color: $bgColor;
        font-size: .16rem;
        text-align: center;
        &_back{
            position: absolute;
            left: .18rem;
            font-size: .22rem;
        }
    }
    &_receiver{
        position: absolute;
        left: .18rem;
        right: .18rem;
        bottom: 0;
        height: 1.11rem;
        border-radius: .04rem;
        background: $bgColor;
        &_title{
            line-height: .22rem;
            padding: .16rem 0 .14rem .16rem;
            font-size: .16rem;
            color: $content-fontcolor;
        }
        &_address{
            line-height: .2rem;
            padding: 0 .4rem 0 .16rem;
            font-size: .14rem;
            color: $content-fontcolor;
        }
        &_info{
            padding: 0.06rem 0 0 .16rem;
            font-size: .12rem;
            color: $medium-fontColor;
            &_name{
                line-height: .18rem;
                margin-right: .06rem;
            }
        }
        &_icon{
            transform: rotate(180deg);
            position: absolute;
            top: .55rem;
            right: .16rem;
            font-size: .2rem;
            color: $medium-fontColor;
        }
        
    }
}
</style>